import request from '@/utils/request'

// 查询收单列表
export function listDetainOrder(query) {
  return request({
    url: '/financial/detainOrder/list',
    method: 'get',
    params: query
  })
}

// 查询收单详细
export function getDetainOrder(id) {
  return request({
    url: '/financial/detainOrder/' + id,
    method: 'get'
  })
}

// 新增收单
export function addDetainOrder(data) {
  return request({
    url: '/financial/detainOrder',
    method: 'post',
    data: data
  })
}

// 修改收单
export function updateDetainOrder(data) {
  return request({
    url: '/financial/detainOrder',
    method: 'put',
    data: data
  })
}

// 删除收单
export function delDetainOrder(id) {
  return request({
    url: '/financial/detainOrder/' + id,
    method: 'delete'
  })
}
